/*
 * @Author: 杜二康 3224811364@qq.com
 * @Date: 2025-08-13 10:55:23
 * @LastEditors: 杜二康 3224811364@qq.com
 * @LastEditTime: 2025-09-18 16:42:59
 * @FilePath: \igw\nuxt.config.ts
 * @Description:
 *
 * Copyright (c) 2025 by ${git_name_email}, All Rights Reserved.
 */
// https://nuxt.com/docs/api/configuration/nuxt-config

export default defineNuxtConfig({
  ssr: false,
  compatibilityDate: "2025-07-15",
  devtools: { enabled: true },
  modules: [
    "@nuxtjs/i18n",
    "@nuxtjs/tailwindcss",
    "reka-ui/nuxt",
    "motion-v/nuxt",
  ],
  i18n: {
    locales: [
      {
        code: "en",
        language: "en-US",
        name: "English",
        nativeName: "English",
        flag: "🇺🇸",
        files: [
          "index-en.json",
          "digitMemoryTest/digitMemoryTest-en.json",
          "timePerceptionTest/timePerceptionTest-en.json",
          "decisionMakingTest/decisionMakingTest-en.json",
          "cognitiveFlexibilityTest/cognitiveFlexibilityTest-en.json",
          "processingSpeedTest/processingSpeedTest-en.json",
          "wordAssociationTest/wordAssociationTest-en.json",
          "visualPerceptionTest/visualPerceptionTest-en.json",
          "multitaskTest/multitaskTest-en.json",
          "emotionRecognitionTest/emotionRecognitionTest-en.json",
          "spatialMemoryTest/spatialMemoryTest-en.json",
          "audioMemoryTest/audioMemoryTest-en.json",
          "verbalFluencyTest/verbalFluencyTest-en.json",
          "readingComprehensionTest/readingComprehensionTest-en.json",
          "creativeThinkingTest/creativeThinkingTest-en.json",
          "mathTest/mathTest-en.json",
          "aiBattleMode/aiBattleMode-en.json",
          "conceptFormationTest/conceptFormationTest-en.json",
          "AbstractReasoningTest/AbstractReasoningTest-en.json",
          "criticalThinkingTest/criticalThinkingTest-en.json",
          "profilePage/profilePage-en.json",
          "reactionTimeTest/reactionTimeTest-en.json",
          "typingSpeedTest/typingSpeedTest-en.json",
          "memoryTest/memoryTest-en.json",
          "sequenceReasoningTest/sequenceReasoningTest-en.json",
          "patternRecognitionTest/patternRecognitionTest-en.json",
          "spatialReasoningTest/spatialReasoningTest-en.json",
          "colorTest/colorTest-en.json",
          "coordinationTest/coordinationTest-en.json",
          "logicalReasoningTest/logicalReasoningTest-en.json",
          "workingMemoryTest/workingMemoryTest-en.json",
          "attentionTest/attentionTest-en.json",
        ],
      },
      {
        code: "fr",
        language: "fr-FR",
        name: "French",
        nativeName: "Français",
        flag: "🇫🇷",
        files: ["index-fr.json"],
      },
      {
        code: "zh",
        language: "zh-CN",
        name: "Chinese",
        nativeName: "中文",
        flag: "🇨🇳",
        files: [
          "index-zh.json",
          "digitMemoryTest/digitMemoryTest-zh.json",
          "timePerceptionTest/timePerceptionTest-zh.json",
          "decisionMakingTest/decisionMakingTest-zh.json",
          "processingSpeedTest/processingSpeedTest-zh.json",
          "wordAssociationTest/wordAssociationTest-zh.json",
          "visualPerceptionTest/visualPerceptionTest-zh.json",
          "cognitiveFlexibilityTest/cognitiveFlexibilityTest-zh.json",
          "multitaskTest/multitaskTest-zh.json",
          "emotionRecognitionTest/emotionRecognitionTest-zh.json",
          "spatialMemoryTest/spatialMemoryTest-zh.json",
          "audioMemoryTest/audioMemoryTest-zh.json",
          "verbalFluencyTest/verbalFluencyTest-zh.json",
          "readingComprehensionTest/readingComprehensionTest-zh.json",
          "creativeThinkingTest/creativeThinkingTest-zh.json",
          "mathTest/mathTest-zh.json",
          "aiBattleMode/aiBattleMode-zh.json",
          "conceptFormationTest/conceptFormationTest-zh.json",
          "AbstractReasoningTest/AbstractReasoningTest-zh.json",
          "criticalThinkingTest/criticalThinkingTest-zh.json",
          "profilePage/profilePage-zh.json",
          "reactionTimeTest/reactionTimeTest-zh.json",
          "typingSpeedTest/typingSpeedTest-zh.json",
          "memoryTest/memoryTest-zh.json",
          "sequenceReasoningTest/sequenceReasoningTest-zh.json",
          "patternRecognitionTest/patternRecognitionTest-zh.json",
          "spatialReasoningTest/spatialReasoningTest-zh.json",
          "colorTest/colorTest-zh.json",
          "coordinationTest/coordinationTest-zh.json",
          "logicalReasoningTest/logicalReasoningTest-zh.json",
          "workingMemoryTest/workingMemoryTest-zh.json",
          "attentionTest/attentionTest-zh.json",
        ],
      },
      {
        code: "ja",
        language: "ja-JP",
        name: "Japanese",
        nativeName: "日本語",
        flag: "🇯🇵",
        files: ["index-ja.json"],
      },
    ],

    defaultLocale: "en",
    langDir: "./locales",
    compilation: {
      strictMessage: false,
    },
  },
  devServer: {
    host: "0.0.0.0", // 使用0.0.0.0允许任何IP地址访问
    port: 3000,
  },
});
